﻿#pragma once

//#include "CaseSplitterWnd.h"
#include "CheckCaseTreeCtrl.h"
#include "OperatorTreeCtrl.h"

// CCheckCaseEditDialog 对话框

class CCheckCaseEditDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CCheckCaseEditDialog)

public:
	CCheckCaseEditDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCheckCaseEditDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CHECK_CASE_EDIT };
#endif

protected:
	//CFrameWnd*			m_pFrameWnd;
	//CCaseSplitterWnd	m_wndSplitter;

	ck::CheckCase*	m_pCase;

public:
	CCheckCaseTreeCtrl m_caseTree;

	COperatorTreeCtrl m_operTree;
	CMFCPropertyGridCtrl m_ruleProps;

public:
	void		SetCheckCase(ck::CheckCase* pCase);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);

	afx_msg void OnNMClickTreeCase(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMClickTreeOperator(NMHDR *pNMHDR, LRESULT *pResult);
};
